﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Pong_Project.Game_objects
{
    abstract class GameObjectMovable : GameObject
    {
        private float speed;
        private Vector2 velocity;

        public GameObjectMovable(GameObjectIdentity identity, Vector2 position, Vector2 velocity, float speed)
            : base(identity, position)
        {
            this.speed = speed;
            this.velocity = velocity;
        }

        public float Speed
        {
            get { return speed; }
            set { speed = value; }
        }

        public float VelocityX
        {
            set { velocity.X = value; }
            get { return velocity.X; }
        }

        public float VelocityY
        {
            set { velocity.Y = value; }
            get { return velocity.Y; }
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }
    }
}
